<?php $this->import('Header') ?>
<div class="container single">
	<div class="row">
		<div class="col-xs-8">
			<div class="article">
				<div class="detail">
					<h4 class="title"><?php echo $detail['Title'] ?></h4>
					<span class="time">
						<?php echo date('Y-m-d H:i:s', $detail['CreateTime']) ?>&nbsp;&nbsp;&nbsp;
						<i class="glyphicon glyphicon-eye-open"></i> <?php echo $detail['ViewNumber'] ?>
					</span>
					<div class="detail-content"><?php echo $detail['Content'] ?></div>
					<div class="share">
						<div class="social-info"><a id="js-show-comment-count" href="javascript:;">评论（）</a> | &nbsp;<a href=""><i class="glyphicon glyphicon-heart"></i> 喜欢（1）</a> </div>
						<div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone"></a><a href="#" class="bds_tsina" data-cmd="tsina"></a><a href="#" class="bds_tqq" data-cmd="tqq"></a><a href="#" class="bds_renren" data-cmd="renren"></a><a href="#" class="bds_weixin" data-cmd="weixin"></a></div>
						<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"<?php echo $detail['Title'] ?>","bdMini":"2","bdPic":"<?php echo $detail['Cover'] ?>","bdStyle":"0","bdSize":"16"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
					</div>
					<div id="js-detail-box"></div>
				</div>
			</div>
		</div>
		<div class="col-xs-4">
			<div class="row detail-user">
				<div class="col-xs-4">
					<a href="/dog_u<?php echo $userInfo['UserId'] ?>.html"><img class="user-photo" src="<?php echo !empty($userInfo['Photo']) ? \Util\User::getUserPhoto($userInfo['Photo'], 200, 200) : '/Resource/images/nohead_new.jpg'; ?>"></a>
				</div>
				<div class="col-xs-8">
					<a href="/dog_u<?php echo $userInfo['UserId'] ?>.html"><h4 class="name text-success"><?php echo $userInfo['Username'] ?></h4></a>
					<span class="mk"><?php echo $userInfo['breed'] ?></span>
					<span class="mk"><?php echo $userInfo['Sex'] == '1' ? 'GG' : 'MM' ?></span>
					<span class="mk" title="<?php echo implode('', $userInfo['cityInfo']) ?>"><?php echo implode('', $userInfo['cityInfo']) ?></span>
					<div class="action">
						<a href="javascript:;"><i class="glyphicon glyphicon-star"></i> 加关注</a>
					</div>
				</div>
			</div>
			<div class="row other-article">
				<span class="tit text-success">Ta的其他帖子<a href="">更多</a></span>
				<div class="list">
					<?php foreach($otherArticles as $val) { ?>
						<a href="/single/detail_<?php echo $val['ArticleId'] ?>.html"><?php echo $val['Title'] ?></a>
					<?php } ?>
				</div>
			</div>
		</div>
	</div>
</div>
<?php $this->import('Footer') ?>
<script>
	seajs.init({articleId:<?php echo $detail['ArticleId'] ?>});
</script>